<?php defined( 'BASEPATH' ) or die( 'Restricted' );

class generateForm extends tgsfForm
{
	protected function _setup()
	{
		$this->method = 'get';
		$this->id( 'generate_form' );
		$this->useTemplate( 'top' );

		$this->_( fftText )->caption( 'Form Name' )->name( 'form' );
		$this->_( fftText )->caption( 'Cancel Button Url' )->name( 'cancel_url' );
		$this->_( fftText )->caption( 'Form Template example: top' )->name( 'template' );
		$this->_( fftCheck )->caption( 'Form Template In App?' )->name( 'inapp' );
		$this->_( fftText )->caption( 'Developer' )->name( 'developer' );
		
		$this->_( fftTextArea )->caption( 'Fields and Groups' )->name( 'fields' );

		//------------------------------------------------------------------------
		// BUTTONS
		//------------------------------------------------------------------------

		$this->startGroup( '_buttons' );
		$this->_( fftSubmit )->caption( 'Save' )->name( 'go' )->setFieldAttribute( 'class', 'ui-priority-primary' );

	}

	//------------------------------------------------------------------------

	protected function _setupValidate( &$v )
	{
//		$v->_( 'account_type_name' )->required()->max_len( 50 );
	}

	//------------------------------------------------------------------------
}

return new generateForm();